<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台首页</title>
    <link rel="stylesheet" href="/php/tpblog/public/BootStrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/php/tpblog/public/BootStrap/css/bootstrap-rtl.css" />
    <script type="text/javascript" src="/php/tpblog/public/js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="/php/tpblog/public/BootStrap/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">بىلوگ سېستىىسى </a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li <?php if(CONTROLLER_NAME == 'Index'): ?>class="active"<?php endif; ?>><a href="<?php echo U('Index/index');?>">باشبەت <span class="sr-only">(current)</span></a></li>
                <li <?php if(CONTROLLER_NAME == 'Content'): ?>class="active"<?php endif; ?>><a href="<?php echo U('Content/index');?>">مەزمۇن</a></li>
                <li <?php if(CONTROLLER_NAME == 'User'): ?>class="active"<?php endif; ?>><a href="<?php echo U('User/index');?>">ئەزا</a></li>
                <li <?php if(CONTROLLER_NAME == 'Tools'): ?>class="active"<?php endif; ?>><a href="<?php echo U('tools/index');?>">ئىقتىدار</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">ئالدى بەت</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ياخشىمۇسىز[admin] <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">ئارخىب تەھرىرلەش</a></li>
                        <li><a href="<?php echo U('Index/logout');?>">بىخەتەر چېكىنىش </a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="container">
    <div class="row">
        <div style="height: 30px"></div>
        <div class="col-md-2">
            <ul class="list-group">
    <li class="list-group-item <?php if(CONTROLLER_NAME == 'Catigory'): ?>active<?php endif; ?>"><a href="<?php echo U('Catigory/index');?>">كاتېگوريە باشقۇرۇش</a></li>
    <li class="list-group-item"><a href="<?php echo U('Tag/index');?>">خەتكۈچ باشقۇرۇش</a></li>
    <li class="list-group-item"><a href="<?php echo U('Article/index');?>">مەزمۇن باشقۇرۇش</a></li>
</ul>
<style>
    .list-group .active a{
        color: #fff;
    }
</style>

        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h4><?php echo ($page_title); ?></h4>
            </div>
            <div class="btn-group" role="group" aria-label="...">
                <a href="<?php echo U('Catigory/index');?>" class="btn btn-default">بارلىق كاتېگورىيەلەر</a>
            </div>
            <div style="height: 20px"></div>
            <form action="<?php echo U('Catigory/addhend');?>" method="post">
                <div class="form-group">
                    <input name="cname" type="text" class="form-control" placeholder="كاتېگورىيە نامى">
                </div>
                <div class="form-group">
                    <input name="sort" type="text" class="form-control" placeholder="تەرتىپ">
                </div>
                <div class="form-group">
                    <select class="form-control" name="pid">
                        <option value="">ئانا كاتېگورىيە</option>
                        <?php if(is_array($categorys)): foreach($categorys as $key=>$c): ?><option value="<?php echo ($c['cid']); ?>"><?php echo ($c['cname']); ?></option><?php endforeach; endif; ?>
                    </select>
                </div>
                <div class="form-group">
                    <label class="radio-inline">
                        <input type="radio" name="status" id="inlineRadio1" value="1" checked> ئوچۇق
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="status" id="inlineRadio2" value="0"> تاقاق
                    </label>
                </div>
                <button type="submit" class="btn btn-default">قوشۇش</button>
            </form>
        </div>
    </div>
</div>

</body>
</html>